package com.jlf.core.engine.driver;

import com.jlf.core.engine.domain.SchemaCriterionDO;
import com.jlf.core.engine.domain.SchemaDomainDO;
import com.jlf.core.engine.domain.SchemaFieldDO;
import com.jlf.core.engine.domain.SchemaIndexDO;

import java.util.List;

/**
 * 模型的驱动服务
 *
 * @author wujr
 * 2023/7/8
 * @version 1.0
 * 【变更历史】
 * [wujr 2023/7/8 1.0 新增]
 */
public interface SchemaDriveServer {
    void publishDomain(SchemaDomainDO schemaDomain,
                       List<SchemaFieldDO> schemaFields,
                       List<SchemaIndexDO> schemaIndexes,
                       List<SchemaCriterionDO> schemaCriteria,
                       boolean initTable) throws Exception;

    void withdrawDomain(SchemaDomainDO schemaDomain)throws Exception;
}
